import service from '@/utils/request'

// @Tags UserMsg
// @Summary 创建UserMsg
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserMsg true "创建UserMsg"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userMsg/createUserMsg [post]
export const createUserMsg = (data) => {
     return service({
         url: "/userMsg/createUserMsg",
         method: 'post',
         data
     })
 }


// @Tags UserMsg
// @Summary 删除UserMsg
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserMsg true "删除UserMsg"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userMsg/deleteUserMsg [delete]
 export const deleteUserMsg = (data) => {
     return service({
         url: "/userMsg/deleteUserMsg",
         method: 'delete',
         data
     })
 }

// @Tags UserMsg
// @Summary 删除UserMsg
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserMsg"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userMsg/deleteUserMsg [delete]
 export const deleteUserMsgByIds = (data) => {
     return service({
         url: "/userMsg/deleteUserMsgByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserMsg
// @Summary 更新UserMsg
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserMsg true "更新UserMsg"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userMsg/updateUserMsg [put]
 export const updateUserMsg = (data) => {
     return service({
         url: "/userMsg/updateUserMsg",
         method: 'put',
         data
     })
 }


// @Tags UserMsg
// @Summary 用id查询UserMsg
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserMsg true "用id查询UserMsg"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userMsg/findUserMsg [get]
 export const findUserMsg = (params) => {
     return service({
         url: "/userMsg/findUserMsg",
         method: 'get',
         params
     })
 }


// @Tags UserMsg
// @Summary 分页获取UserMsg列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserMsg列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userMsg/getUserMsgList [get]
 export const getUserMsgList = (params) => {
     return service({
         url: "/userMsg/getUserMsgList",
         method: 'get',
         params
     })
 }